
import  akka.actor._
import akka.actor.Actor.Receive
import akka.routing.{Broadcast, FromConfig}

class ShowNanme   extends  Actor  with  ActorLogging {
  override def receive: Receive = {

    case  1 => {println("feel1..")
   log.info(context.self.path.toSerializationFormat)
    }
    case  _  => {println("......  default")}

  }
}

object RouteDemo1 {
  def main(args: Array[String]) {
     val system=ActorSystem("systme")
    val router = system.actorOf(Props[ShowNanme].withRouter(FromConfig()), "router")

      //router !  1
      router ! Broadcast(1)


  }
}
